import os
import shutil
import time

import pytest

if __name__ == '__main__':
    pytest.main()
    time.sleep(1)
    # -o表示输出到xx文件夹
    os.system("allure generate ./temps -o ./reports --clean")
    # 复制保存日志
    shutil.move("logs/frame.log", "logs/frame_"+str(int(time.time()))+".log")